#ifndef SERIAL_PORT_H
#define SERIAL_PORT_H

#include <QMainWindow>
#include <QWidget>

#include <QSerialPort>

QT_BEGIN_NAMESPACE

namespace Ui {
class SerialPortSettings;
}

class QIntValidator;

QT_END_NAMESPACE

class SerialPortSettings : public QWidget
{
  Q_OBJECT
public:
  explicit SerialPortSettings(QWidget *parent = nullptr);
  ~SerialPortSettings();

  struct settings {
    QString name;
    qint32 baudRate;
    QString stringBaudRate;
    QSerialPort::DataBits dataBits;
    QString stringDataBits;
  };

signals:

};

#endif // SERIAL_PORT_H
